﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using TCKQKL.Service.DataContract; 

namespace TCKQKL.FrontEnd.DataModel
{
    public sealed class QuoteDataUI
    {
        private string _symbol;
        private string _companyName;
        private decimal _volume;
        private decimal _closed;
        private decimal _ref;
        private decimal _ceiling;
        private decimal _floor;
        private decimal _open;
        private decimal _low;
        private decimal _high;
        private decimal _change;
        private string _exCenter;

        public QuoteDataUI()
        {
        }
        public QuoteDataUI(string symbol, string companyName, decimal close, decimal open, decimal low, decimal high, decimal change, decimal volume, decimal ceiling, decimal floor, decimal refr, string exCenter)
        {
            this._symbol = symbol;
            this._companyName = companyName;
            this._volume = volume;
            this._closed = close;
            this._open = open;
            this._low = low;
            this._high = high;
            this._change = change;
            this._ceiling = ceiling;
            this._floor = floor;
            this._ref = refr;
            this._exCenter = exCenter;
        }
        public QuoteDataUI(StocksDataModel quoteModel)
        {
            this._symbol = quoteModel.Symbol;
            this._companyName = quoteModel.CompanyName;
            this._volume = quoteModel.Volume;
            this._closed = quoteModel.Closed;
            this._open = quoteModel.Open;
            this._low = quoteModel.Low;
            this._high = quoteModel.High;
            this._change = quoteModel.Changed;
            this._ceiling = quoteModel.Ceiling;
            this._floor = quoteModel.Floor;
            this._ref = quoteModel.Ref;
        }
        
        public string Symbol
        {
            get
            {
                return _symbol;
            }

            set
            {
                this._symbol = value;
            }
        }
        public string CompanyName
        {
            get
            {
                return _companyName;
            }

            set
            {
                this._companyName = value;
            }
        }
        public decimal Closed
        {
            get
            {
                return _closed;
            }

            set
            {
                this._closed = value;
            }
        }
        public decimal Open
        {
            get
            {
                return _open;
            }

            set
            {
                this._open = value;
            }
        }
        public decimal Low
        {
            get
            {
                return _low;
            }

            set
            {
                this._low = value;
            }
        }
        public decimal High
        {
            get
            {
                return _high;
            }

            set
            {
                this._high = value;
            }
        }
        public decimal Changed
        {
            get
            {
                return _change;
            }

            set
            {
                this._change = value;
            }
        }
        public decimal Volume
        {
            get
            {
                return _volume;
            }

            set
            {
                this._volume = value;
            }
        }
        public decimal Floor
        {
            get { return _floor; }
            set { _floor = value; }
        }
        public decimal Ceiling
        {
            get { return _ceiling; }
            set { _ceiling = value; }
        }
        public decimal Ref
        {
            get { return _ref; }
            set { _ref = value; }
        }
        public string ExCenter
        {
            get { return _exCenter; }
            set { _exCenter = value; }
        }

    }
}
